class Config(object):
    def getBaseConfig(self, baseSelf):
        # 登录的url
        baseSelf.login_url  = "https://kyfw.12306.cn/otn/resources/login.html"
        # 个人主页
        baseSelf.initMy_url = "https://kyfw.12306.cn/otn/view/index.html"
        # 查票
        baseSelf.search_url = "https://kyfw.12306.cn/otn/leftTicket/init"
        # 订票
        baseSelf.confirmPassenger_url = "https://kyfw.12306.cn/otn/confirmPassenger/initDc"
        # 邮箱配置
        baseSelf.mail_user = "1637706220@qq.com"  # 用户名
        baseSelf.mail_pass = "pxsydpdadkvzggie"  # 口令
        baseSelf.sender    = '1637706220@qq.com'  # 发件人
        # 是否使用帐号密码登陆，1为使用，0为不使用
        baseSelf.isAccountLogin = '0'
        # 每一轮搜索次数上限
        baseSelf.times = 100
        # 休息时间(min),请设置合理区间，防止查询页面访问过期
        baseSelf.sleepTime = 2
        # 是否设置搜索中断0不终止，1终止
        baseSelf.isExit = 0
        # 搜索最多轮数
        baseSelf.maxTimes = 2

        return baseSelf
    def getInputConfig(self, inputSelf):
        # 出发地
        inputSelf.start = '成都东'
        # 目的地
        inputSelf.to_station = '遂宁'
        # 请输入乘车人（如有多人请用英文逗号隔开）
        inputSelf.peoples = '袁仁凯'
        # 请输入乘车日期[例如：2024-09-09]
        inputSelf.start_time = '2024-10-01'
        # 请输入抢票的车次（如有多个请用英文逗号隔开）

        # inputSelf.train_num = 'D2256,D2374,D2264,D3078,D1828,D368'
        inputSelf.train_num = 'D3078,D50,D6193,D5111,D5110,D2256'
        # inputSelf.train_num = 'D2264,D3078,D1828,D368'
        # inputSelf.train_num = 'D2256'
        # 请输入你的邮箱，方便通知你抢票结果信息
        inputSelf.my_mail = '1637706220@qq.com'
          # 刘晏 15123387677
        # inputSelf.my_mail = '1657216856@qq.com'
        # 曹
        # self.my_mail = '2675916740@qq.com'
        # [2]商务座,[3]优选一等座,[4]一等座,[5]二等座,[6]高级软卧,[7]软卧,[8]硬卧,[9]软座,[10]硬座,[11]无座
        inputSelf.seat = [5]

        # 帐号密码登陆信息
        inputSelf.username = '19922206302'
        inputSelf.password = 'yuan12345'
        # 身份证后4位
        inputSelf.entity   = '6719'
        return inputSelf